// Created by Joe on 8/1/2017

app.service(
    'AffairQueryService',
    [
        'config', 'RequestProxyService',
        function (config, RequestProxyService) {
            return {
                getBusinessInfo: function (phone) {
                    return RequestProxyService.requestProxy('/progress/getAllBusinessInfo', {},
                        {phoneNum: phone, cityCode: config.curCity.cityCode},
                        function (resolve, info) {
                            resolve(info.result);
                        }, '', '', 'GET')();
                }
            };
        }
    ]
);